package com.mdhw.system.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mdhw.system.entity.SysRole;
import com.mdhw.system.vo.SysRoleVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface SysRoleDao extends BaseMapper<SysRole> {
    int deleteByPrimaryKey(Long id);

    int insert(SysRole record);

    int insertSelective(SysRole record);

    SysRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysRole record);

    int updateByPrimaryKey(SysRole record);

    public Page<SysRoleVo> selectRoleListPage(Page page, @Param(Constants.WRAPPER) QueryWrapper<SysRole> queryWrapper);
    public Page<SysRoleVo> selectRoleVoListPage(Page<SysRoleVo> page, @Param(Constants.WRAPPER) QueryWrapper<SysRoleVo> queryWrapper);
}